package com.itheima.d1_polymorphism;

//老师  继承 父类
public class Teacher extends People {

    //方法重写
    @Override
    public void eat() {
        System.out.println("老师年龄大了，喜欢吃素");
    }
}
